OpenMP: parallel op and errno at once